package com.tiancheng.trade.settlement.vo.settlement.admin;

import lombok.Data;
import org.apache.commons.lang3.StringUtils;

import java.util.List;

/**
 * @Auther: liudong
 * @Date: 2024/4/27 11:24
 * @Param ${tags}
 * @Description:
 */
@Data
public class PaymentBillDetailQuery {

    /**
     * 对账结果：success：正常，abnormal：异常,notmatch:未匹配
     */
    private String reconciliationStatus;

    private List<String> reconciliationStatusList;
    /**
     * 支付订单号
     */
    private String paymentId;
    /**
     * 渠道支付订单号
     */
    private String flowId;
    /**
     * 商户编码
     */
    private String merchantCode;
    /**
     * 交易类型
     */
    private String transactionType;
    /**
     * 交易金额
     */
    private Integer payAmount;
    /**
     * 优惠金额
     */
    private Integer discount;
    /**
     * 渠道费
     */
    private Integer serviceCharge;
    /**
     * 对账开始日期
     */
    private String reconciliationDateBegin;
    /**
     * 对账结束日期
     */
    private String reconciliationDateEnd;

    /**
     * 交易时间
     */
    private String payTimeBegin;
    /**
     * 交易时间
     */
    private String payTimeEnd;

    /**
     * 银行侧订单号
     */
    private String bankOrderId;

    private Integer currentPage;

    private Integer pageSize;

    public Integer getCurrentPage() {
        if (null == currentPage || currentPage < 0) {
            currentPage = 1;
        }
        return currentPage;
    }

    public Integer getPageSize() {
        if (null == pageSize) {
            pageSize = 10;
        }
        return pageSize;
    }

    public String getPaymentId() {
        if (StringUtils.isNotEmpty(paymentId)) {
            paymentId = paymentId.trim();
        }
        return paymentId;
    }

    public String getFlowId() {
        if (StringUtils.isNotEmpty(flowId)) {
            flowId = flowId.trim();
        }
        return flowId;
    }

}
